<?php

namespace App\Models;

use App\Models\Traits\BelongsToApplication;
use App\Models\Traits\HasEasyStatus;
use GeneaLabs\LaravelModelCaching\Traits\Cachable;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;

class Wechat extends Model
{
    use BelongsToApplication,
        Cachable,
        HasEasyStatus,
        SoftDeletes;

    public function payment(): BelongsTo
    {
        return $this->belongsTo(Payment::class);
    }

    public function users(): HasMany
    {
        return $this->hasMany(User::class);
    }
}
